Optimal. Leaf size=97 \[ \frac {(a-2 b) \text {ArcTan}\left (\frac {\sqrt {a-b} \sinh (e+f x)}{\sqrt {a+b \sinh ^2(e+f x)}}\right )}{2 (a-b)^{3/2} f}+\frac {\text {sech}(e+f x) \sqrt {a+b \sinh ^2(e+f x)} \tanh (e+f x)}{2 (a-b) f} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 97, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.160, Rules used = {3269, 390, 385,
209} \begin {gather*} \frac {(a-2 b) \text {ArcTan}\left (\frac {\sqrt {a-b} \sinh (e+f x)}{\sqrt {a+b \sinh ^2(e+f x)}}\right )}{2 f (a-b)^{3/2}}+\frac {\tanh (e+f x) \text {sech}(e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{2 f (a-b)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 209
Rule 385
Rule 390
Rule 3269
Rubi steps
\begin {align*} \int \frac {\text {sech}^3(e+f x)}{\sqrt {a+b \sinh ^2(e+f x)}} \, dx &=\frac {\text {Subst}\left (\int \frac {1}{\left (1+x^2\right )^2 \sqrt {a+b x^2}} \, dx,x,\sinh (e+f x)\right )}{f}\\ &=\frac {\text {sech}(e+f x) \sqrt {a+b \sinh ^2(e+f x)} \tanh (e+f x)}{2 (a-b) f}+\frac {(a-2 b) \text {Subst}\left (\int \frac {1}{\left (1+x^2\right ) \sqrt {a+b x^2}} \, dx,x,\sinh (e+f x)\right )}{2 (a-b) f}\\ &=\frac {\text {sech}(e+f x) \sqrt {a+b \sinh ^2(e+f x)} \tanh (e+f x)}{2 (a-b) f}+\frac {(a-2 b) \text {Subst}\left (\int \frac {1}{1-(-a+b) x^2} \, dx,x,\frac {\sinh (e+f x)}{\sqrt {a+b \sinh ^2(e+f x)}}\right )}{2 (a-b) f}\\ &=\frac {(a-2 b) \tan ^{-1}\left (\frac {\sqrt {a-b} \sinh (e+f x)}{\sqrt {a+b \sinh ^2(e+f x)}}\right )}{2 (a-b)^{3/2} f}+\frac {\text {sech}(e+f x) \sqrt {a+b \sinh ^2(e+f x)} \tanh (e+f x)}{2 (a-b) f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 3 in
optimal.
time = 8.69, size = 443, normalized size = 4.57 \begin {gather*} \frac {\text {sech}^3(e+f x) \left (1+\frac {b \sinh ^2(e+f x)}{a}\right ) \tanh (e+f x) \left (45 a \text {ArcSin}\left (\sqrt {\frac {(a-b) \tanh ^2(e+f x)}{a}}\right )+30 b \text {ArcSin}\left (\sqrt {\frac {(a-b) \tanh ^2(e+f x)}{a}}\right ) \sinh ^2(e+f x)+16 a \, _2F_1\left (2,3;\frac {7}{2};\frac {(a-b) \tanh ^2(e+f x)}{a}\right ) \sqrt {\frac {\text {sech}^2(e+f x) \left (a+b \sinh ^2(e+f x)\right )}{a}} \left (\frac {(a-b) \tanh ^2(e+f x)}{a}\right )^{5/2}+16 b \, _2F_1\left (2,3;\frac {7}{2};\frac {(a-b) \tanh ^2(e+f x)}{a}\right ) \sinh ^2(e+f x) \sqrt {\frac {\text {sech}^2(e+f x) \left (a+b \sinh ^2(e+f x)\right )}{a}} \left (\frac {(a-b) \tanh ^2(e+f x)}{a}\right )^{5/2}-45 a \sqrt {\frac {\text {sech}^2(e+f x) \left (a^2-b^2 \sinh ^2(e+f x)+a b \left (-1+\sinh ^2(e+f x)\right )\right ) \tanh ^2(e+f x)}{a^2}}-30 b \sinh ^2(e+f x) \sqrt {\frac {\text {sech}^2(e+f x) \left (a^2-b^2 \sinh ^2(e+f x)+a b \left (-1+\sinh ^2(e+f x)\right )\right ) \tanh ^2(e+f x)}{a^2}}\right )}{30 a f \sqrt {a+b \sinh ^2(e+f x)} \sqrt {\frac {\text {sech}^2(e+f x) \left (a+b \sinh ^2(e+f x)\right )}{a}} \left (\frac {(a-b) \tanh ^2(e+f x)}{a}\right )^{3/2}} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 1.95, size = 35, normalized size = 0.36
method | result | size |
default | \(\frac {\mathit {`\,int/indef0`\,}\left (\frac {1}{\cosh \left (f x +e \right )^{4} \sqrt {a +b \left (\sinh ^{2}\left (f x +e \right )\right )}}, \sinh \left (f x +e \right )\right )}{f}\) | \(35\) |
risch | \(\text {Expression too large to display}\) | \(450266\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 693 vs.
\(2 (85) = 170\).
time = 0.48, size = 1503, normalized size = 15.49 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\operatorname {sech}^{3}{\left (e + f x \right )}}{\sqrt {a + b \sinh ^{2}{\left (e + f x \right )}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 693 vs.
\(2 (85) = 170\).
time = 0.55, size = 693, normalized size = 7.14 \begin {gather*} \frac {{\left (\frac {{\left (a - 2 \, b\right )} \arctan \left (-\frac {\sqrt {b} e^{\left (2 \, f x + 2 \, e\right )} - \sqrt {b e^{\left (4 \, f x + 4 \, e\right )} + 4 \, a e^{\left (2 \, f x + 2 \, e\right )} - 2 \, b e^{\left (2 \, f x + 2 \, e\right )} + b} + \sqrt {b}}{2 \, \sqrt {a - b}}\right )}{{\left (a e^{\left (4 \, e\right )} - b e^{\left (4 \, e\right )}\right )} \sqrt {a - b}} - \frac {2 \, {\left ({\left (\sqrt {b} e^{\left (2 \, f x + 2 \, e\right )} - \sqrt {b e^{\left (4 \, f x + 4 \, e\right )} + 4 \, a e^{\left (2 \, f x + 2 \, e\right )} - 2 \, b e^{\left (2 \, f x + 2 \, e\right )} + b}\right )}^{3} a - 2 \, {\left (\sqrt {b} e^{\left (2 \, f x + 2 \, e\right )} - \sqrt {b e^{\left (4 \, f x + 4 \, e\right )} + 4 \, a e^{\left (2 \, f x + 2 \, e\right )} - 2 \, b e^{\left (2 \, f x + 2 \, e\right )} + b}\right )}^{3} b - 5 \, {\left (\sqrt {b} e^{\left (2 \, f x + 2 \, e\right )} - \sqrt {b e^{\left (4 \, f x + 4 \, e\right )} + 4 \, a e^{\left (2 \, f x + 2 \, e\right )} - 2 \, b e^{\left (2 \, f x + 2 \, e\right )} + b}\right )}^{2} a \sqrt {b} + 2 \, {\left (\sqrt {b} e^{\left (2 \, f x + 2 \, e\right )} - \sqrt {b e^{\left (4 \, f x + 4 \, e\right )} + 4 \, a e^{\left (2 \, f x + 2 \, e\right )} - 2 \, b e^{\left (2 \, f x + 2 \, e\right )} + b}\right )}^{2} b^{\frac {3}{2}} - 4 \, {\left (\sqrt {b} e^{\left (2 \, f x + 2 \, e\right )} - \sqrt {b e^{\left (4 \, f x + 4 \, e\right )} + 4 \, a e^{\left (2 \, f x + 2 \, e\right )} - 2 \, b e^{\left (2 \, f x + 2 \, e\right )} + b}\right )} a^{2} - {\left (\sqrt {b} e^{\left (2 \, f x + 2 \, e\right )} - \sqrt {b e^{\left (4 \, f x + 4 \, e\right )} + 4 \, a e^{\left (2 \, f x + 2 \, e\right )} - 2 \, b e^{\left (2 \, f x + 2 \, e\right )} + b}\right )} a b + 2 \, {\left (\sqrt {b} e^{\left (2 \, f x + 2 \, e\right )} - \sqrt {b e^{\left (4 \, f x + 4 \, e\right )} + 4 \, a e^{\left (2 \, f x + 2 \, e\right )} - 2 \, b e^{\left (2 \, f x + 2 \, e\right )} + b}\right )} b^{2} - 4 \, a^{2} \sqrt {b} + 5 \, a b^{\frac {3}{2}} - 2 \, b^{\frac {5}{2}}\right )}}{{\left ({\left (\sqrt {b} e^{\left (2 \, f x + 2 \, e\right )} - \sqrt {b e^{\left (4 \, f x + 4 \, e\right )} + 4 \, a e^{\left (2 \, f x + 2 \, e\right )} - 2 \, b e^{\left (2 \, f x + 2 \, e\right )} + b}\right )}^{2} + 2 \, {\left (\sqrt {b} e^{\left (2 \, f x + 2 \, e\right )} - \sqrt {b e^{\left (4 \, f x + 4 \, e\right )} + 4 \, a e^{\left (2 \, f x + 2 \, e\right )} - 2 \, b e^{\left (2 \, f x + 2 \, e\right )} + b}\right )} \sqrt {b} + 4 \, a - 3 \, b\right )}^{2} {\left (a e^{\left (4 \, e\right )} - b e^{\left (4 \, e\right )}\right )}}\right )} e^{\left (4 \, e\right )}}{f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {1}{{\mathrm {cosh}\left (e+f\,x\right )}^3\,\sqrt {b\,{\mathrm {sinh}\left (e+f\,x\right )}^2+a}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________